/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.math.BigDecimal;

/**
 * 进料检验Entity
 * @author HOHD
 * @version 2020-12-16
 */
@Table(name="st_check_log_detail", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="check_project", attrName="checkProject", label="检验项目"),
		@Column(name="standard_content", attrName="standardContent", label="标准要求"),
		@Column(name="in_fact_value", attrName="inFactValue", label="实测值"),
		@Column(name="bad_number", attrName="badNumber", label="不良数量"),
		@Column(name="judge_result", attrName="judgeResult", label="判定结果"),
		@Column(name="parent_id", attrName="parentId.id", label="父id"),
	}, orderBy="a.id ASC"
)
public class StCheckLogDetail extends DataEntity<StCheckLogDetail> {
	
	private static final long serialVersionUID = 1L;
	private String checkProject;		// 检验项目
	private String standardContent;		// 标准要求
	private BigDecimal inFactValue;		// 实测值
	private BigDecimal badNumber;		// 不良数量
	private String judgeResult;		// 判定结果
	private StCheckLog parentId;		// 父id 父类
	
	public StCheckLogDetail() {
		this(null);
	}


	public StCheckLogDetail(StCheckLog parentId){
		this.parentId = parentId;
	}
	
	@Length(min=0, max=50, message="检验项目长度不能超过 50 个字符")
	public String getCheckProject() {
		return checkProject;
	}

	public void setCheckProject(String checkProject) {
		this.checkProject = checkProject;
	}
	
	@Length(min=0, max=100, message="标准要求长度不能超过 100 个字符")
	public String getStandardContent() {
		return standardContent;
	}

	public void setStandardContent(String standardContent) {
		this.standardContent = standardContent;
	}
	
	public BigDecimal getInFactValue() {
		return inFactValue;
	}

	public void setInFactValue(BigDecimal inFactValue) {
		this.inFactValue = inFactValue;
	}
	
	public BigDecimal getBadNumber() {
		return badNumber;
	}

	public void setBadNumber(BigDecimal badNumber) {
		this.badNumber = badNumber;
	}
	
	@Length(min=0, max=20, message="判定结果长度不能超过 20 个字符")
	public String getJudgeResult() {
		return judgeResult;
	}

	public void setJudgeResult(String judgeResult) {
		this.judgeResult = judgeResult;
	}
	
	@Length(min=0, max=36, message="父id长度不能超过 36 个字符")
	public StCheckLog getParentId() {
		return parentId;
	}

	public void setParentId(StCheckLog parentId) {
		this.parentId = parentId;
	}
	
}